package duck.util;

import java.lang.reflect.Field;

import log4j.BaseLog;

public class BeanUtil extends BaseLog {

	public static Object copyProperty(Object from,Object to){
		Field []ff=from.getClass().getDeclaredFields();
		Field []tf=to.getClass().getDeclaredFields();
		       for(int i=0;i<ff.length;i++){
		    	   log.info(ff[i].toString());
		       }
		       
		       
		       
		return to;
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		pojo.Department d=new pojo.Department();
		pojo.Persion p=new pojo.Persion();
		copyProperty(d,p);
	}

}
